home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
cmln1285.arc
/
QUIKBAS1.LTG
< prev
next >
Wrap
Text File
|
1986-02-27
|
256b
|
11 lines
quickbasic.rvw LISTING 2
DEF FNSUMOFSQUARES(N)
IF N<=0 THEN FNSUMOFSQUARES = -1:EXIT DEF
SUM = 0
FOR I = 1 TO N
SUM = SUM + I * I
NEXT I
FNSUMOFSQUARES = SUM
END DEF